// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLShowVariantsStatement.h"
#include "../../visitor/SQLASTVisitor.h"

BOOL_ptr SQLShowVariantsStatement::isGlobal()
{
  return global;
}

void SQLShowVariantsStatement::setGlobal(BOOL_ptr global)
{
  this->global = global;
}

BOOL_ptr SQLShowVariantsStatement::isSession()
{
  return session;
}

void SQLShowVariantsStatement::setSession(BOOL_ptr session)
{
  this->session = session;
}

SQLExpr_ptr SQLShowVariantsStatement::getLike()
{
  return like;
}

void SQLShowVariantsStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}

SQLExpr_ptr SQLShowVariantsStatement::getWhere()
{
  return where;
}

void SQLShowVariantsStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void SQLShowVariantsStatement::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLShowVariantsStatement)))
  {
    acceptChild(visitor, like);
    acceptChild(visitor, where);
  }
  visitor->endVisit(SharedObject(SQLShowVariantsStatement));
}
